import request from "@/utils/request";
//查询医院列表
export function findHospList(page, limit, searchObj) {
  return request({
    url: `/api/hosp/hospital/findHospList/${page}/${limit}`,
    method: "get",
    params: searchObj,
  });
}
//根据医院名称查询
export function findByHosName(hosname) {
  return request({
    url: `/api/hosp/hospital/findByHosName/${hosname}`,
    method: "get",
  });
}
//根据医院编号获取科室列表
export function getDepartmentByHoscode(hoscode) {
  return request({
    url: `/api/hosp/hospital/department/${hoscode}`,
    method: "get",
  });
}
//根据医院编号获取医院预约挂号详情
export function findHospitalDetail(hoscode) {
  return request({
    url: `/api/hosp/hospital/findHospitalDetail/${hoscode}`,
    method: "get",
  });
}
//获取可预约排班的信息
export function getBookingRuleSchedule(page,limit,hoscode,depcode) {
  return request({
    url: `/api/hosp/hospital/auth/getBookingRuleSchedule/${page}/${limit}/${hoscode}/${depcode}`,
    method: "get",
  });
}
//获取排班具体数据
export function findScheduleList(hoscode,depcode,workDate) {
  return request({
    url: `/api/hosp/hospital/auth/findScheduleList/${hoscode}/${depcode}/${workDate}`,
    method: "get",
  });
}
//根据排班id获取排班数据
export function getSchedule(scheduleId) {
  return request({
    url: `/api/hosp/hospital/getSchedule/${scheduleId}`,
    method: "get",
  });
}